#ifndef MNTFILE_H
#define MNTFILE_H
#include <string>
#include <fstream>
#include <GL/gl.h>

#include <cstdlib>
#include <iostream>

#include "IFile.h"
#include "readpng.h"

class MntFile : public IFile
{
	public:
	MntFile(const char* s, const char* t);
	~MntFile();
	void load(const char* s);
	
	float * getVertices();
	GLuint * getFaces();
	
	float * getTex();
	GLuint getTexID();
	
	long long int getNbVertices();
	long long int getNbFaces();

	private:
	
	void calcFaces();
    void calcTex(const char* t);
      
	long long int _nrows;
	long long int _ncols;
	long long int _nbVertices;
	long long int _nbFaces;


	float* _tex;
	gl_texture_t *_texObj;
	float* _vertices;
	GLuint* _faces;
	
	
	
};

#endif
